package com.wsd.bookkeeping.mapper;


import com.wsd.bookkeeping.entity.Right;
import com.wsd.bookkeeping.form.PermissionForm;
import com.wsd.bookkeeping.vo.UserRightListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RightMapper {

    List<Right> queryRightList();
    UserRightListVO queryRightListByUserId(@Param("userId") Integer userId, @Param("bookId") Integer bookId);

    Boolean saveOrUpdateUserPermission(PermissionForm form);

}
